package cn.raven.basic.query;

import lombok.Data;

/**

* @Description: 公共条件类
* @Author: king
* @Version: 1.0
* @Date:  2022/6/21 18:00  
  */
@Data
public class BaseQuery {
    //起始页
    private Integer currentPage = 1;
    //当前页条数
    private Integer pageSize = 5;
    //高级查询条件
    private String keyword;

    //起始页位置计算
    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
